package com.yxjx.duoxue.datamodel;

import java.io.Serializable;

/**
 * store one AD item data info.
 * @author mengmengchen
 *
 */
public class DMAdItem implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5574639104698848249L;
	public static final int AD_TYPE_H5 = 0;
	public static final int AD_TYPE_COURSE = 1;
	public static final int AD_TYPE_ACTIVITY = 2;
	
	private int adId = -1;
	private String title = "";
	private String des = "";
	private String mImageUrl = "";
	private int mAdType = 0;
	private long itemId = 0; // such as activity/course id;
	private int isShared = 1; // 默认都是支持分享的。
	// support H5
	private int needLogin = -1;
	private String pageUrl = "";
	
	
	public DMAdItem(String imgUrl, int adType, long itemId) {
		setImageUrl(imgUrl);
		setAdType(adType);
		setItemId(itemId);
	}
	
	public String getImageUrl() {
		return mImageUrl;
	}
	public void setImageUrl(String mImageUrl) {
		this.mImageUrl = mImageUrl;
	}
	public int getAdType() {
		return mAdType;
	}
	public void setAdType(int mAdType) {
		this.mAdType = mAdType;
	}
	public long getItemId() {
		return itemId;
	}
	public void setItemId(long itemId) {
		this.itemId = itemId;
	}

	public int getAdId() {
		return adId;
	}

	public void setAdId(int adId) {
		this.adId = adId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getNeedLogin() {
		return needLogin;
	}

	public void setNeedLogin(int needLogin) {
		this.needLogin = needLogin;
	}

	public String getPageUrl() {
		return pageUrl;
	}

	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public int getIsShared() {
		return isShared;
	}

	public void setIsShared(int isShared) {
		this.isShared = isShared;
	}

}
